package top.xana.acg.anime.ui.page

import top.xana.acg.anime.R
import top.xana.acg.anime.ui.frag.SearchContentFragment
import top.xana.acg.anime.ui.frag.SearchDefaultFragment
import top.xana.acg.common.base.ui.BaseFragment

class SearchFragment : BaseFragment() {

    companion object {
        fun newInstance() = SearchFragment()
        const val TAG = "SearchFragment"
    }

    private lateinit var viewModel: SearchViewModel
    override fun getLayoutId() = R.layout.search_fragment

    override fun initView() {
        super.initView()
        childFragmentManager.beginTransaction()
            .add(R.id.container, SearchContentFragment.newInstance())
            .addToBackStack(SearchDefaultFragment.TAG)
            .commit()
    }


}